package com.nuonuo.test.controller;

import com.aisino.elin.common.entity.annotation.TaxNoRule;
import com.nuonuo.jingwei.rpc.config.annotation.JingweiRpcService;
import com.nuonuo.jingwei.rpc.http.igenerator.annotation.JwHttpInterfaceGenerator;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author duan
 * @version 1.0
 * @date 2023/10/11 15:35
 */
@RestController
@RequestMapping(value = "hello")
//@JingweiRpcService(version = "1.0.0")
//@JwHttpInterfaceGenerator
@Validated
public class HelloController {

    @RequestMapping(value = "/sayHello", method = RequestMethod.GET)
    @ResponseBody
    public String sayHello( @TaxNoRule @RequestParam String name) {
        return "hello, " + name;
    }
}
